<?php
/**
 * 缓存Key常量配置类
 */

namespace Apps\Common\Constant;

/**
 * Class CacheKeyConstant
 * @package Apps\Common\Constant
 */
class CacheKeyConstant
{
    // memcached互斥锁key前缀
    const MUTEX_LOCK_CACHE_KEY = 'mutex_lock_cache_key';

    // 数据库从库跳过记录缓存key前缀
    const DB_SLAVE_SKIP_CACHE_KEY = 'db_slave_skip_cache_key';

    // 基于URL级别的缓存key前缀
    const URL_PREFIX_CACHE_KEY = 'url_prefix_cache_key';

    // API接口请求超限缓存key前缀
    const API_REQ_OVER_LIMIT_CACHE_KEY = 'api_req_over_limit_cache_key';

    // 微信用户信息缓存key前缀
    const WX_USER_INFO_CACHE_KEY = 'wx_user_info_cache_key_v1';

    // 验证码session缓存key
    const CAPTCHA_SESSION_CACHE_KEY = 'captcha_session_cache_key';

    // 后台账号session缓存key
    const ADMIN_ACCOUNT_SESSION_CACHE_KEY = 'admin_account_session_cache_key';

    // 微信accesstoken
    const WEIXIN_ACCESSTOKEN_CACHE_KEY = 'weixin_accesstoken_cache_key';

    // 微信第三方accesstoken
    const WEIXIN_API_COMPONENT_TOKEN_CACHE_KEY = 'weixin_api_component_token_cache_key';

    // 微信预授权码cachekey
    const WEIXIN_PRE_AUTHCODE_CACHE_KEY = 'weixin_pre_authcode_cache_key';

    // 微信调用凭证授权信息缓存key
    const WEIXIN_AUTHORIZER_INFO_CACHE_KEY = 'weixin_authorizer_info_cache_key';

    // 服务方法缓存key
    const SERVICE_METHOD_CACHE_KEY = 'service_method_cache_key';

    // 定时任务锁缓存key
    const TASK_CRON_MUTEX_LOCK_CACHE_KEY = 'task_cron_mutex_lock_cache_key';

    // 后台用户组缓存key
    const ACP_MANAGER_GROUP_CACHE_KEY = 'acp_manager_group_cache_key';

    //微信用户
    const WEIXIN_USERINFO_CACHE_KEY = 'weixin_userinfo_cache_key';

    //微信用户
    const WEIXIN_USERINFO_BY_ID_CACHE_KEY = 'weixin_userinfo_by_id_cache_key';

    // 微信配置参数缓存key
    const WX_CONFIG_DATA_CACHE_KEY = 'wx_config_data_cache_key';

    // 微信js ticket 缓存key
    const WEIXIN_JSAPI_TICKET_CACHE_KEY = 'weixin_jsapi_ticket_cache_key';

    // 微信access token缓存key
    const WEIXIN_ACCESS_TOKEN_CACHE_KEY = 'weixin_access_token_cache_key';

    /****************************** FANLI**********************************/

    const FANLI_REBATE_CAMPAIGN_FIELD_CACHE_KEY = 'fanli_rebate_campaign_field_cache_key';

    const FANLI_REBATE_GOODS_FIELD_CACHE_KEY = 'fanli_rebate_goods_field_cache_key';

    const FANLI_USER_VIEWS_CACHE_KEY = 'fanli_user_views_cache_key';

    const FANLI_CAMPAIGN_VIEWS_CACHE_KEY = 'fanli_campaign_views_cache_key';

    const FANLI_USER_CACHE_KEY = 'fanli_user_cache_key';
}
